package com.ruoyi.web.domain;


import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName("device_access_visitor")
public class DeviceAccessVisitor {
    @TableId(value = "base_id", type = IdType.AUTO)
    private Long baseId;

    private String accessUserName;
    private String accessCode;
    private String ipAddress;
    @JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date beginTime;
    private String accessContent;
    @JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    private Long accessInterval;
    private String source;
    private String delFlag;

    @JsonFormat(pattern= "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(value="create_time", fill=FieldFill.INSERT)
    private Date createTime;
    @TableField(value="update_time", fill=FieldFill.UPDATE)
    private Date updateTime;
    //0离线，1在线
    private String onlineFlag;

    private String deviceId;

    private String deviceName;

    @TableField(exist = false)
    private String submitUserName;

    //访问类型，0摄像头，1其他
    private String type;

    @TableField(exist = false)
    private Boolean errorPlayFlag;

    @TableField(exist = false)
    private String adminFlag;

    @TableField(exist = false)
    private Long submitUserId;
}